  
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit Meeting</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Meeting List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Meeting</g:link></span>
        </div>
        <div class="body">
            <h1>Edit Meeting</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${meeting}">
            <div class="errors">
                <g:renderErrors bean="${meeting}" as="list" />
            </div>
            </g:hasErrors>
            <g:form controller="meeting" method="post" >
                <input type="hidden" name="id" value="${meeting?.id}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
				            <tr class='prop'><td valign='top' class='name'><label for='attendees'>Attendees:</label></td><td valign='top' class='value ${hasErrors(bean:meeting,field:'attendees','errors')}'><ul>
    <g:each var='a' in='${meeting?.attendees?}'>
        <li><g:link controller='attendee' action='show' id='${a.id}'>${a}</g:link></li>
    </g:each>
</ul>
<g:link controller='attendee' params='["meeting.id":meeting?.id]' action='create'>Add Attendee</g:link>
</td></tr>
                        
				            <tr class='prop'><td valign='top' class='name'><label for='date'>Date:</label></td><td valign='top' class='value ${hasErrors(bean:meeting,field:'date','errors')}'><g:datePicker name='date' value="${meeting?.date}" ></g:datePicker></td></tr>
                        
				            <tr class='prop'><td valign='top' class='name'><label for='location'>Location:</label></td><td valign='top' class='value ${hasErrors(bean:meeting,field:'location','errors')}'><input type="text" id='location' name='location' value="${meeting?.location?.encodeAsHTML()}"/></td></tr>
                        
				            <tr class='prop'><td valign='top' class='name'><label for='speaker'>Speaker:</label></td><td valign='top' class='value ${hasErrors(bean:meeting,field:'speaker','errors')}'><input type="text" id='speaker' name='speaker' value="${meeting?.speaker?.encodeAsHTML()}"/></td></tr>
                        
				            <tr class='prop'><td valign='top' class='name'><label for='subject'>Subject:</label></td><td valign='top' class='value ${hasErrors(bean:meeting,field:'subject','errors')}'><input type="text" id='subject' name='subject' value="${meeting?.subject?.encodeAsHTML()}"/></td></tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
